package com.sghy.xcxservice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 登录信息表
 * @TableName bgb_login
 */
@TableName(value ="bgb_login")
@Data
public class BgbLogin implements Serializable {
    /**
     *
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 手机号，要唯一
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 加密密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 账号
     */
    @TableField(value = "user_name")
    private String userName;

    /**
     * 微信统一id
     */
    @TableField(value = "union_id")
    private String unionId;

    /**
     * 密码盐
     */
    @TableField(value = "encrypt")
    private String encrypt;

    /**
     * 创建时间
     */
    @TableField(value = "created_time")
    private Date createdTime;

    /**
     * 信息变更时间
     */
    @TableField(value = "updated_time")
    private Date updatedTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
